import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useJoinStore = defineStore(
    'joinState',
    () => {
        let getInvite = ref(false) //是否收到邀请
        let sendInvite = ref(false) //是否发送邀请
        let joinGame = ref(false)
        let hallMap = ref(null) //大厅地图
        return {
            getInvite,
            joinGame,
            sendInvite,
            hallMap,
        }
    },
    {
        persist: {
            paths: ['getInvite', 'sendInvite'],
        },
    },
)
